<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <p>{{ message }}</p>
      <p>count: {{ count }}</p>
      <button @click="count++">count++</button>
    </div>

    <!-- 用cdn的方式引入vue -->
    <!-- <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> -->

    <script src="../Vue.js"></script>

    <script>
      const { createApp } = Vue;

      createApp({
        data() {
          return {
            message: "Hello Vue!",
            count: 10,
          };
        },
      }).mount("#app");
    </script>
  </body>
</html>
